home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / dfpp01.zip / RADIO.H < prev    next >
C/C++ Source or Header  |  1992-11-21  |  631b  |  29 lines

  1. // ----------- radio.h
  2.  
  3. #ifndef RADIO_H
  4. #define RADIO_H
  5.  
  6. #include "textbox.h"
  7.  
  8. class RadioButton : public TextBox    {
  9.     virtual void SetColors();
  10.     Bool setting;
  11. public:
  12.     RadioButton(char *lbl, int lf, int tp, DFWindow *par);
  13.     virtual ~RadioButton()
  14.         { if (windowstate != CLOSED) CloseWindow(); }
  15.     // -------- API messages
  16.     virtual void OpenWindow();
  17.     virtual void CloseWindow();
  18.     virtual Bool SetFocus();
  19.     virtual void ResetFocus();
  20.     virtual void Paint();
  21.     virtual void Keyboard(int key);
  22.     virtual void LeftButton(int mx, int my);
  23.     void PushRadioButton();
  24.     void ReleaseRadioButton();
  25. };
  26.  
  27. #endif
  28.  
  29.